Skip to content

[CI] Add --succinct to lit args #152335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

boomanaiden154
Copy link
Contributor

@boomanaiden154 boomanaiden154 commented Aug 6, 2025

We currently log every single test that we run in premerge. This leads to gigantic logs (200k+ lines on Linux) that can be difficult to parse through. Having an indicator of progress is nice, especially for the LLVM tests, but is not strictly necessary and not often used (I imagine). Having a progress indicator from lit that works in CI cases is on my TODO list.

For the rare cases where someone does need to see the list of tests that run, the JUnit XML emitted by lit is available in the artifacts.

We currently log every single test that we run in premerge. This leads
to gigantic logs (200k+ lines on Linux) that can be difficult to parse
through. We should only indicate progress rather than explicitly logging
any test that we run.

For the rare cases where someone does need to see the list of tests that
run, the JUnit XML emitted by lit is available in the artifacts.
@boomanaiden154 boomanaiden154 changed the title [CI] Add --succinct to lit args [CI] Add --quiet to lit args Aug 6, 2025
@boomanaiden154 boomanaiden154 marked this pull request as ready for review August 6, 2025 16:39
Copy link
Contributor

@snehasish snehasish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Thanks for making the change, in addition to long loading times I think it will improve the quality of the AI log based test failure analysis for those who have github copilot.

Copy link

@emomaxd emomaxd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@boomanaiden154 boomanaiden154 changed the title [CI] Add --quiet to lit args [CI] Add --succinct to lit args Aug 7, 2025
Copy link
Collaborator

@DavidSpickett DavidSpickett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a progress indicator from lit that works in CI cases is on my TODO list.

https://llvm.org/docs/CommandGuide/lit.html#cmdoption-lit-s

"Also show a progress bar, unless --no-progress-bar is specified."

In CI systems I've used, the progress bar was usually ok while the log was being watched live, but in the final file it would be a lot of:

=
==
===
====

etc.

I don't know how well it works on GitHub but will be interested to see what you come up with.

For the rare cases where someone does need to see the list of tests that run, the JUnit XML emitted by lit is available in the artifacts.

I find myself in a lot of those rare cases, and this is fine with me. If it's somehow not enough, we can always patch the script in the same PR.

@boomanaiden154
Copy link
Contributor Author

I don't know how well it works on GitHub but will be interested to see what you come up with.

It seems to end up as this:

2025-08-07T01:35:07.9676537Z Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 

I don't remember seeing the progress indicated at all in the log while tests were running, but maybe I just missed it.

@boomanaiden154 boomanaiden154 merged commit cfa00d4 into llvm:main Aug 7, 2025
10 checks passed
@boomanaiden154 boomanaiden154 deleted the progress-bar-premerge-tests branch August 7, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants